package xyz.xiaomuyu.moment_read_app;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;

import xyz.xiaomuyu.moment_read_app.ui.DBtest.DBActivity;
import xyz.xiaomuyu.moment_read_app.ui.login.LoginActivity;


public class MainActivity extends Activity  {



    //zbt
    Button button;
    /**
     * 跳转到数据库测试按钮
     *
     * @author: xiaomuyu
     */

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.login_layout);




        // 为两个按钮的单击事件添加监听器



        button = findViewById(R.id.opentabbar);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent1 = new Intent(MainActivity.this, MyTabbar.class);
                startActivity(intent1);
            }
        });

//        button_DBtest = findViewById(R.id.DBtest);
//        button_DBtest.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                Intent intent = new Intent(MainActivity.this, DBActivity.class);
//                startActivity(intent);
//            }
//        });
//
//        Button button_login = findViewById(R.id.login);
//        button_login.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                Intent intent = new Intent(MainActivity.this, LoginActivity.class);
//                startActivity(intent);
//            }
//        });

    }


}


